package foo.bar.wiki.plugins.impl;

import foo.bar.wiki.plugins.UserActivityListenerPlugin;
import foo.bar.wiki.plugins.PluginException;
import foo.bar.wiki.domain.User;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @author tmjee
 * @version $Date$ $Id$
 */
public class NoOpUserActivityListenerPlugin extends AbstractPlugin implements UserActivityListenerPlugin {

    private static final Log LOG = LogFactory.getLog(NoOpUserActivityListenerPlugin.class);


    public void preUserLogin(User user) throws PluginException {
        LOG.info("Loggin user ["+user.getUsername()+"] in");
    }

    public void postUserLogin(User user) {
        LOG.info("User ["+user.getUsername()+"] logged in");
    }

    public void userLoginFailed(String username) {
        LOG.info("User ["+username+"] failed to login");
    }

    public void userLogout(User user) {
        LOG.info("User ["+user.getUsername()+"] logged out");
    }
}
